package com.jemmyee.shop.entity;

// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.annotations.GenericGenerator;

/**
 * @Description:订单
 * @author:jemmyee@gmail.com
 * @date:2011-4-1
 * @version:v1.0
 */
@Entity
@Table(name = "so_order")
public class Order implements java.io.Serializable {

	// Fields

	private Integer id;
	private String orderSn;
	private Integer userId;
	private Short orderStatus;
	private Short shippingStatus;
	private Short payStatus;
	private String consignee;
	private Short country;
	private Short province;
	private Short city;
	private Short district;
	private String address;
	private String zipcode;
	private String tel;
	private String mobile;
	private String email;
	private String bestTime;
	private String signBuilding;
	private String postscript;
	private Short shippingId;
	private String shippingName;
	private Short payId;
	private String payName;
	private String howOos;
	private String howSurplus;
	private String packName;
	private String cardName;
	private String cardMessage;
	private String invPayee;
	private String invContent;
	private Double goodsAmount;
	private Double shippingFee;
	private Double insureFee;
	private Double payFee;
	private Double packFee;
	private Double cardFee;
	private Double moneyPaid;
	private Double surplus;
	private Integer integral;
	private Double integralMoney;
	private Double bonus;
	private Double orderAmount;
	private Short fromAd;
	private String referer;
	private Date addTime;
	private Date confirmTime;
	private Date payTime;
	private Integer shippingTime;
	private Short packId;
	private Short cardId;
	private Integer bonusId;
	private String invoiceNo;
	private String extensionCode;
	private Integer extensionId;
	private String toBuyer;
	private String payNote;
	private Short agencyId;
	private String invType;
	private Double tax;
	private Short isSeparate;
	private Integer parentId;
	private Double discount;


	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "order_sn", unique = true, length = 20)
	public String getOrderSn() {
		return this.orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "order_status")
	public Short getOrderStatus() {
		return this.orderStatus;
	}

	public void setOrderStatus(Short orderStatus) {
		this.orderStatus = orderStatus;
	}

	@Column(name = "shipping_status")
	public Short getShippingStatus() {
		return this.shippingStatus;
	}

	public void setShippingStatus(Short shippingStatus) {
		this.shippingStatus = shippingStatus;
	}

	@Column(name = "pay_status")
	public Short getPayStatus() {
		return this.payStatus;
	}

	public void setPayStatus(Short payStatus) {
		this.payStatus = payStatus;
	}

	@Column(name = "consignee", length = 60)
	public String getConsignee() {
		return this.consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	@Column(name = "country")
	public Short getCountry() {
		return this.country;
	}

	public void setCountry(Short country) {
		this.country = country;
	}

	@Column(name = "province")
	public Short getProvince() {
		return this.province;
	}

	public void setProvince(Short province) {
		this.province = province;
	}

	@Column(name = "city")
	public Short getCity() {
		return this.city;
	}

	public void setCity(Short city) {
		this.city = city;
	}

	@Column(name = "district")
	public Short getDistrict() {
		return this.district;
	}

	public void setDistrict(Short district) {
		this.district = district;
	}

	@Column(name = "address")
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "zipcode", length = 60)
	public String getZipcode() {
		return this.zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	@Column(name = "tel", length = 60)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "mobile", length = 60)
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "email", length = 60)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "best_time", length = 120)
	public String getBestTime() {
		return this.bestTime;
	}

	public void setBestTime(String bestTime) {
		this.bestTime = bestTime;
	}

	@Column(name = "sign_building", length = 120)
	public String getSignBuilding() {
		return this.signBuilding;
	}

	public void setSignBuilding(String signBuilding) {
		this.signBuilding = signBuilding;
	}

	@Column(name = "postscript")
	public String getPostscript() {
		return this.postscript;
	}

	public void setPostscript(String postscript) {
		this.postscript = postscript;
	}

	@Column(name = "shipping_id")
	public Short getShippingId() {
		return this.shippingId;
	}

	public void setShippingId(Short shippingId) {
		this.shippingId = shippingId;
	}

	@Column(name = "shipping_name", length = 120)
	public String getShippingName() {
		return this.shippingName;
	}

	public void setShippingName(String shippingName) {
		this.shippingName = shippingName;
	}

	@Column(name = "pay_id")
	public Short getPayId() {
		return this.payId;
	}

	public void setPayId(Short payId) {
		this.payId = payId;
	}

	@Column(name = "pay_name", length = 120)
	public String getPayName() {
		return this.payName;
	}

	public void setPayName(String payName) {
		this.payName = payName;
	}

	@Column(name = "how_oos", length = 120)
	public String getHowOos() {
		return this.howOos;
	}

	public void setHowOos(String howOos) {
		this.howOos = howOos;
	}

	@Column(name = "how_surplus", length = 120)
	public String getHowSurplus() {
		return this.howSurplus;
	}

	public void setHowSurplus(String howSurplus) {
		this.howSurplus = howSurplus;
	}

	@Column(name = "pack_name", length = 120)
	public String getPackName() {
		return this.packName;
	}

	public void setPackName(String packName) {
		this.packName = packName;
	}

	@Column(name = "card_name", length = 120)
	public String getCardName() {
		return this.cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}

	@Column(name = "card_message")
	public String getCardMessage() {
		return this.cardMessage;
	}

	public void setCardMessage(String cardMessage) {
		this.cardMessage = cardMessage;
	}

	@Column(name = "inv_payee", length = 120)
	public String getInvPayee() {
		return this.invPayee;
	}

	public void setInvPayee(String invPayee) {
		this.invPayee = invPayee;
	}

	@Column(name = "inv_content", length = 120)
	public String getInvContent() {
		return this.invContent;
	}

	public void setInvContent(String invContent) {
		this.invContent = invContent;
	}

	@Column(name = "goods_amount", precision = 10)
	public Double getGoodsAmount() {
		return this.goodsAmount;
	}

	public void setGoodsAmount(Double goodsAmount) {
		this.goodsAmount = goodsAmount;
	}

	@Column(name = "shipping_fee", precision = 10)
	public Double getShippingFee() {
		return this.shippingFee;
	}

	public void setShippingFee(Double shippingFee) {
		this.shippingFee = shippingFee;
	}

	@Column(name = "insure_fee", precision = 10)
	public Double getInsureFee() {
		return this.insureFee;
	}

	public void setInsureFee(Double insureFee) {
		this.insureFee = insureFee;
	}

	@Column(name = "pay_fee", precision = 10)
	public Double getPayFee() {
		return this.payFee;
	}

	public void setPayFee(Double payFee) {
		this.payFee = payFee;
	}

	@Column(name = "pack_fee", precision = 10)
	public Double getPackFee() {
		return this.packFee;
	}

	public void setPackFee(Double packFee) {
		this.packFee = packFee;
	}

	@Column(name = "card_fee", precision = 10)
	public Double getCardFee() {
		return this.cardFee;
	}

	public void setCardFee(Double cardFee) {
		this.cardFee = cardFee;
	}

	@Column(name = "money_paid", precision = 10)
	public Double getMoneyPaid() {
		return this.moneyPaid;
	}

	public void setMoneyPaid(Double moneyPaid) {
		this.moneyPaid = moneyPaid;
	}

	@Column(name = "surplus", precision = 10)
	public Double getSurplus() {
		return this.surplus;
	}

	public void setSurplus(Double surplus) {
		this.surplus = surplus;
	}

	@Column(name = "integral")
	public Integer getIntegral() {
		return this.integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	@Column(name = "integral_money", precision = 10)
	public Double getIntegralMoney() {
		return this.integralMoney;
	}

	public void setIntegralMoney(Double integralMoney) {
		this.integralMoney = integralMoney;
	}

	@Column(name = "bonus", precision = 10)
	public Double getBonus() {
		return this.bonus;
	}

	public void setBonus(Double bonus) {
		this.bonus = bonus;
	}

	@Column(name = "order_amount", precision = 10)
	public Double getOrderAmount() {
		return this.orderAmount;
	}

	public void setOrderAmount(Double orderAmount) {
		this.orderAmount = orderAmount;
	}

	@Column(name = "from_ad")
	public Short getFromAd() {
		return this.fromAd;
	}

	public void setFromAd(Short fromAd) {
		this.fromAd = fromAd;
	}

	@Column(name = "referer")
	public String getReferer() {
		return this.referer;
	}

	public void setReferer(String referer) {
		this.referer = referer;
	}

	@Column(name = "add_time", length = 0)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "confirm_time", length = 0)
	public Date getConfirmTime() {
		return this.confirmTime;
	}

	public void setConfirmTime(Date confirmTime) {
		this.confirmTime = confirmTime;
	}

	@Column(name = "pay_time", length = 0)
	public Date getPayTime() {
		return this.payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	@Column(name = "shipping_time")
	public Integer getShippingTime() {
		return this.shippingTime;
	}

	public void setShippingTime(Integer shippingTime) {
		this.shippingTime = shippingTime;
	}

	@Column(name = "pack_id")
	public Short getPackId() {
		return this.packId;
	}

	public void setPackId(Short packId) {
		this.packId = packId;
	}

	@Column(name = "card_id")
	public Short getCardId() {
		return this.cardId;
	}

	public void setCardId(Short cardId) {
		this.cardId = cardId;
	}

	@Column(name = "bonus_id")
	public Integer getBonusId() {
		return this.bonusId;
	}

	public void setBonusId(Integer bonusId) {
		this.bonusId = bonusId;
	}

	@Column(name = "invoice_no")
	public String getInvoiceNo() {
		return this.invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	@Column(name = "extension_code", length = 30)
	public String getExtensionCode() {
		return this.extensionCode;
	}

	public void setExtensionCode(String extensionCode) {
		this.extensionCode = extensionCode;
	}

	@Column(name = "extension_id")
	public Integer getExtensionId() {
		return this.extensionId;
	}

	public void setExtensionId(Integer extensionId) {
		this.extensionId = extensionId;
	}

	@Column(name = "to_buyer")
	public String getToBuyer() {
		return this.toBuyer;
	}

	public void setToBuyer(String toBuyer) {
		this.toBuyer = toBuyer;
	}

	@Column(name = "pay_note")
	public String getPayNote() {
		return this.payNote;
	}

	public void setPayNote(String payNote) {
		this.payNote = payNote;
	}

	@Column(name = "agency_id")
	public Short getAgencyId() {
		return this.agencyId;
	}

	public void setAgencyId(Short agencyId) {
		this.agencyId = agencyId;
	}

	@Column(name = "inv_type", length = 60)
	public String getInvType() {
		return this.invType;
	}

	public void setInvType(String invType) {
		this.invType = invType;
	}

	@Column(name = "tax", precision = 10)
	public Double getTax() {
		return this.tax;
	}

	public void setTax(Double tax) {
		this.tax = tax;
	}

	@Column(name = "is_separate")
	public Short getIsSeparate() {
		return this.isSeparate;
	}

	public void setIsSeparate(Short isSeparate) {
		this.isSeparate = isSeparate;
	}

	@Column(name = "parent_id")
	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@Column(name = "discount", precision = 10)
	public Double getDiscount() {
		return this.discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

}